﻿apiready = function () {
    api.parseTapmode();
    var header = $api.byId('aui-header');
    $api.fixStatusBar(header);
    var headerPos = $api.offset(header);
    var body_h = $api.offset($api.dom('body')).h;
    api.openFrame({
        name: 'demo_news_today_frm',
        url: 'demo_news_today_frm.html',
        bounces: true,
        rect: {
            x: 0,
            y: headerPos.h,
            w: 'auto',
            h: 'auto'
        }
    });

    api.parseTapmode();

};
function closeWin() {
    api.closeWin({
    });
}
var tab = new auiTab({
    element: document.getElementById("footer")
}, function (ret) {
    console.log(ret);
    /*
    if(ret){
        document.getElementById("demo").textContent = ret.index;
    }
    */
});